﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TBP5283.TSuiteReportingPortal.Business.Extensions.Filters;
using AjaxRequestAuthorizationHandle.Extensions;

namespace AjaxRequestAuthorizationHandle.Controllers
{
    public class HomeController : BaseController
    {
        //
        // GET: /Home/
        public ActionResult Index()
        {
            return View();
        }

        //[CustomizedFilter(RedirectUrl="/home/register")]
        [CustomizedAuthorize]
        public ActionResult AjaxTest()
        {
            return PartialView("TestPartial");
        }

        [Authorize]
        public ActionResult AjaxTestNoHandle()
        {
            return PartialView("TestPartial");
        }

        //[CustomizedFilter]
        [CustomizedAuthorize]
        public ActionResult TestPage()
        {
            return View();
        }


        public ActionResult Error()
        {
            return View();
        }
    }
}
